package com.xujicheng.algorithm.sort;

import java.util.Collection;

public interface Sort<T extends Comparable> {
    default Collection<T> sort(Collection<T> t){
        return sort(t,SortType.ASC);
    }

    Collection<T> sort(Collection<T> t,SortType sortType);

    enum SortType{
        DESC,ASC
    }
}
